const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  //关闭eslint
  lintOnSave:false,
  css: {
    loaderOptions: {
      //
      scss: {
        //新版 additionalData  旧版v8 prependData
        additionalData: `
        @import '@/assets/scss/variable.scss';
        @import '@/assets/scss/mixin.scss';
        `,
      },
    },
  },
  configureWebpack: (config) => {
    let path = require('path')
    config.module.rules.push({
      test: path.resolve(__dirname, 'node_modules/leader-line/'),
      use: [
        {
          loader: 'skeleton-loader',
          options: {
            procedure: (content) => `${content}export default LeaderLine`,
          },
        },
      ],
    })
  },
})
